package com.totoro.mapstruct.mapstruct_result_type.factory;

import com.totoro.mapstruct.mapstruct_result_type.bean.Apple;
import com.totoro.mapstruct.mapstruct_result_type.bean.Banana;

/**
 * Created by Niki on 2018/9/28 17:46
 */
public class FruitFactory {
    public Apple createApple() {
        Apple apple = new Apple();
        apple.setType("红富士");
        return apple;
    }

    public Banana createBanana() {
        Banana banana = new Banana();
        banana.setType("小黄人");
        return banana;
    }
}
